package com.icepeach.icepeachhomeback.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName relation
 */
@TableName(value ="relation")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Relation implements Serializable {
    /**
     * 主键id
     */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 业务id
     */
    private String businessId;

    /**
     * 业务名
     */
    private String businessName;

    /**
     * 业务类型：1-用户
     */
    private Integer businessType;

    /**
     * 目标id
     */
    private String targetId;

    /**
     * 目标名
     */
    private String targetName;

    /**
     * 目标类型：1-角色
     */
    private Integer targetType;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private String createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}